package com.spa.infrastructure.common;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 统一的返回结构.
 *
 * @author liangjun
 */
@Getter
@Setter
@NoArgsConstructor
public class ResponseMessage<T> {

    private String code;

    private String message;

    private T result;

    /**
     *构造函数.
     */
    public ResponseMessage(String code, String message) {
        this.code = code;
        this.message = message;
    }

}